package io.itit.ecp.admin.server.service;

import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import io.itit.ecp.admin.server.entity.ActivityCarbonEmissionDataEntity;
import io.itit.ecp.admin.server.entity.ActivityCarbonEmissionEntity;

import java.util.List;


public interface IActivityCarbonEmissionService extends JoinIService<ActivityCarbonEmissionEntity> {

    boolean saveOrUpdateActivityCarbonEmission(ActivityCarbonEmissionEntity activityCarbonEmissionEntity,
                                               List<ActivityCarbonEmissionDataEntity> dataEntities);

    ActivityCarbonEmissionEntity findFirstByActivityName(String name);
}
